package com.tgy.JUC.StreamTest;

import lombok.ToString;

import java.io.Serializable;

/***
 * @ClassName: User
 * @Description:
 * @Auther: 送你一块二向箔
 * @Date: 16:43 2022/3/14
 * @version : V1.0
 */
@ToString
public class User implements Serializable {
    private int id;
    private String name;
    private int age;

    public User() {
    }

    public User(int id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public User setId(int id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public User setName(String name) {
        this.name = name;
        return this;
    }

    public int getAge() {
        return age;
    }

    public User setAge(int age) {
        this.age = age;
        return this;
    }
}
